package user;

import book.BookList;
import operation.IOperation;

public abstract class User {
    protected String name;
    public IOperation ioperations[];//定义一个接口数组，用来存放操作

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doOPeration(int choice, BookList booklist){
        this.ioperations[choice].work(booklist);
    }
}
